home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 March / CMCD0305.ISO / Software / Demo / Elearn / Fizica / vol2 / interfata.swf / scripts / DefineButton2_187 / BUTTONCONDACTION on(press).as
Text File  |  2005-01-03  |  808b  |  26 lines

  1. on(press){
  2.    ss = String(this._name);
  3.    if(cimp_titlu._alpha != 50)
  4.    {
  5.       id = ss.split("ob");
  6.       id = id[1];
  7.       _cnt = _parent._parent.descrie.firstChild.childNodes[id];
  8.       _root.fer.cerinte.htmlText = _cnt.attributes.cerinte;
  9.       _root.fer.timp.htmlText = _cnt.attributes.timp;
  10.       _root.fer.cerinteDesc.htmlText = _cnt.childNodes[0];
  11.       _root.fer.keys.htmlText = _cnt.childNodes[3];
  12.       _root.fer.interact.htmlText = _cnt.childNodes[1];
  13.       _root.fer._TTT.htmlText = _cnt.childNodes[2].firstChild;
  14.       _root.fer.scr.setScrollContent("_TTT");
  15.       _root.fer._visible = true;
  16.       _root.hider._visible = true;
  17.       rect._visible = true;
  18.       _global.whoCalled = this;
  19.    }
  20.    else
  21.    {
  22.       trace("only DEMO");
  23.       _root.demoVerze.play();
  24.    }
  25. }
  26.